package com.joshua.viewtest.demo.RecylerView;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.joshua.viewtest.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class RecyclerViewAty extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recycler_view_aty);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.id_btn_listView, R.id.id_btn_gridView, R.id.id_btn_staggeredGridView})
    public void setBtnListView(View v) {
        switch (v.getId()) {
            case R.id.id_btn_listView:
                startActivity(new Intent(RecyclerViewAty.this, RecylclerListViewAty.class));
                break;
            case R.id.id_btn_gridView:
                startActivity(new Intent(RecyclerViewAty.this, RecylclerGridViewAty.class));
                break;
            case R.id.id_btn_staggeredGridView:
                startActivity(new Intent(RecyclerViewAty.this,
                        RecylclerStaggeredGridViewAty.class));
                break;
        }
    }
}
